.page-content {
  padding: 16px;
}

/* 页面标题 */
.page-title {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin-bottom: 16px;
}

/* 用户信息区域 */
.user-info-section {
  width: 100%;
  height: 160px;
  background-color: white;
  border-radius: 8px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  position: relative;
  justify-content: space-between;
}

.user-info-content {
  display: flex;
  align-items: center;
}

/* 头像上传区域 */
.avatar-section {
  position: relative;
  width: 80px;
  height: 80px;
  margin-left: 10px;
  margin-right: 10px;
  background-color: transparent;
}

.avatar-upload {
  position: relative;
  width: 75px;
  height: 75px;
  border-radius: 50%;
  overflow: hidden;
  background-color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-avatar {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 确保头像完全填充父容器的类 */
.avatar-full-fit {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.user-avatar-placeholder {
  width: 100%;
  height: 100%;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-avatar-placeholder-text {
  font-size: 24px;
  color: #999;
}

.avatar-upload-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

/* 头像完全显示样式 */
.avatar-full-fit {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  border-radius: 50%;
}

.avatar-upload:active .avatar-upload-overlay {
  opacity: 1;
}

.avatar-upload-text {
  font-size: 12px;
  color: #ff3141;
  text-align: center;
}

.logout-btn {
  border: none;
  background: none;
  font-size: 12px;
  color: #999;
  margin-left: auto;
  margin-right: 10px;
}
.my-login-btn {
  color: #1890ff;
  border: none;
  background: none;
  font-size: 12px;
  margin-left: auto;
  margin-right: 10px;
}

/* 用户详情区域 */
.user-details-section {
  flex: 1;
  margin-left: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.username-container {
  display: flex;
  align-items: center;
  margin-bottom: 2px;
}

.user-name {
  font-size: 30rpx;
  font-weight: 600;
  color: #333;
  margin-right: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.username-edit {
  flex: 1;
}

.username-input {
  font-size: 18px;
  padding: 4px 8px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  width: 120px;
}

.edit-button {
  padding: 4px;
  background: none;
  border: none;
  color: #666;
}

.edit-button:active {
  background: none;
  opacity: 0.7;
}

.user-id {
  font-size: 20px;
  color: #999;
  margin-top: 5px;
}

/* 学习进度 */
.car-subject-progress {
  background-color: #e6f7ff;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  min-height: 275px;
}

.progress-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 12px;
}

.progress-title {
  font-weight: 600;
  color: #333;
  margin-right: 16px;
}

/* 进度条 */
.progress-bar-container {
  height: 40px;
  background-color: #FEFCDE;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  margin-bottom: 24px;
  width: 100%;
}

.progress-bar {
  height: 100%;
  background-color: #96f151;
  border-radius: 12px;
  transition: width 0.3s ease;
}

.progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: 600;
  color: #f80303;
}

.progress-car-icon {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  color: #000;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 科目进度卡片 */
.subject-cards {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-left: 20px;
  flex: 1;
  align-items: center;
}

.subject-card {
  width: 23%;
  min-height: 180px;
  height: 80%;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.subject-card.completed {
  background-color: #f6ffed;
}

.subject-card.in-progress {
  background-color: #fff7e6;
}

.subject-card.pulse {
  transform: scale(1.06);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.subject-card.completed.pulse {
  background-color: #e6f7e6;
}

.subject-card.in-progress.pulse {
  background-color: #ffe6cc;
}

.my-subject-name {
  font-size: 28px;
  font-weight: 600;
  color: #1890ff;
  margin-bottom: 4px;
}

.subject-progress-text {
  display: flex;
  align-items: baseline;
}

.subject-progress {
  font-size: 24px;
  font-weight: 600;
  color: #ff4d4f;
}

.subject-total {
  font-size: 24px;
  font-weight: 600;
  color: #333;
}

.completed-mark {
  position: absolute;
  top: -4px;
  right: -4px;
  color: #52c41a;
}

/* 功能菜单样式 */
.my-menu-container {
  background-color: #f5f5f5;
  border-radius: 12px;
  margin-bottom: 32px;
  padding: 16px;
  margin-top: 30px;
}

.my-menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
  padding: 0;
  margin: 0;
}

.my-menu-card {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  height: fit-content;
  padding: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.my-menu-card:active {
  transform: translateY(2px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.my-menu-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: transparent;
  border: none;
  font-size: 32px;
  border-radius: 12px;
  transition: all 0.2s ease;
  position: relative;
  width: 100%;
  height: fit-content;
  padding: 20px;
}

.my-menu-item:active {
  background-color: #f5f5f5;
}

.my-menu-text {
  font-size: 32px;
  color: #333;
  font-weight: 500;
  margin-left: 10px;
}

.my-menu-icon {
  width: 36px;
  height: 36px;
  margin-right: 16px;
  color: #1890ff;
}

/* 底部卡片样式 */
.bottom-cards {
  margin-bottom: 32px;
}

.bottom-card {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 20px;
  margin-bottom: 16px;
}

.bottom-card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.bottom-card-title {
  font-size: 40px;
  font-weight: bold;
  color: #333;
  margin-bottom: 8px;
}

.bottom-card-subtitle {
  font-size: 24px;
  color: #666;
}

.kilometers-card {
  background: linear-gradient(to right, #e0f7ff, #b3e5fc);
}

.points-card {
  background: linear-gradient(to right, #fff3e0, #ffcc80);
}

/* 版本信息 */
.version-info {
  margin-top: 20px;
  text-align: center;
}

.version-text {
  font-size: 12px;
  color: #999;
}

/* 动画 */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* 响应式设计 */
@media (max-width: 375px) {
  .page-content {
    padding: 12px;
  }
  
  .user-info-section {
    padding: 12px;
  }
  
  .user-avatar {
    width: 56px;
    height: 56px;
  }
  
  .user-name {
    font-size: 30rpx;
  }
  
  .progress-title {
    font-size: 20px;
  }
  
  .subject-card {
    height: 72px;
  }
  
  .subject-name {
    font-size: 18px;
  }
  
  .menu-item {
    padding: 12px;
  }
}